﻿using AbpOne.Application.Caching;
using Volo.Abp;
using Volo.Abp.AutoMapper;
using Volo.Abp.Identity;
using Volo.Abp.Modularity;

namespace AbpOne.Application {
    [DependsOn(
        typeof(AbpIdentityApplicationModule),
        typeof(AbpAutoMapperModule),
        typeof(AbpOneApplicationCachingModule)
    )]
    public class AbpOneApplicationModule : AbpModule {
        public override void ConfigureServices(ServiceConfigurationContext context) {
            Configure<AbpAutoMapperOptions>(options => {
                options.AddMaps<AbpOneApplicationModule>(validate: true);
                options.AddProfile<AbpOneAutoMapperProfile>(validate: true);
            });
        }
    }
}